package com.hgw.Demo08_StatePattern.examples;

/**
 * Data time:2021/12/19 21:00
 * StudentID:2019112118
 * Author:hgw
 * Description: 客户端测试
 */
public class Client {
    public static void main(String[] args) {
        Account account = new Account("黄龚伟", 0.0);
        account.deposit(100);
        account.withdraw(200);
        account.deposit(3000);
        account.withdraw(4000);
        account.withdraw(1000);
        account.computeInterest();
    }
}
